import { makeAutoObservable } from "mobx"

import { types } from "@/api/main/article"

class ChannelStore {
  typeList = []
  constructor() {
    makeAutoObservable(this)
  }

  loadTypeList = async () => {
    const res = await types()
    this.typeList = res.typeList
  }
}

export default ChannelStore
